# encoding: utf-8

from const import *

class Font:
  def __init__ (self, name, size):
    self.name = name
    self.size = size
    self.style = []
    self.pitch = fpDefault
    self.color = clBlack
    self.charset = csANSI
  def setName (self, name):
    self.name = unicode(name)
    return self
  def setSize (self, size):
    self.size = size
    return self
  def setStyle (self, style):
    self.style = style
    return self
  def setPitch (self, pitch):
    self.pitch = pitch
    return self
  def setColor (self, color):
    self.color = color
    return self
  def setCharset (self, charset):
    self.charset = charset
    return self

